package cn.edu.swpu.cins.u_chain.frontend.dao.WorksDao;

import cn.edu.swpu.cins.u_chain.frontend.entity.dto.Works.WorksView;
import cn.edu.swpu.cins.u_chain.frontend.entity.dto.Works.WorksViewDetail;
import cn.edu.swpu.cins.u_chain.frontend.entity.persistence.Works.WorksInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
@Mapper
public interface WorksDao {

    int insertWorks(WorksInfo worksInfo);

    int updateWorksVideoUrl(@Param("worksId") int worksId,@Param("worksUrl") String worksUrl);

    int updateWorksPrintScreenUrl(@Param("worksId") int worksId,@Param("url") String url);

    List<WorksView> selectAllWorks();

    List<WorksViewDetail> selectWorksDetail(@Param("worksId") List<Integer> worksId);
}
